package com.runfast.waimai.service.impl;

import com.runfast.common.service.BaseService;
import com.runfast.waimai.dao.mapper.RunfastActivityTargetMapper;
import com.runfast.waimai.dao.model.RunfastActivityTarget;
import com.runfast.waimai.dao.model.RunfastActivityTargetExample;
import com.runfast.waimai.service.RunfastActivityTargetService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class RunfastActivityTargetServiceImpl extends BaseService<RunfastActivityTarget, Integer, RunfastActivityTargetExample> implements RunfastActivityTargetService {
    public Integer countByMap(Map<Object,Object> map){
        RunfastActivityTargetMapper runfastActivityTargetMapper=(RunfastActivityTargetMapper)this.mapper;
        return runfastActivityTargetMapper.countByMap(map);
    }
    public List<RunfastActivityTarget> selectTargetAndActivityByMap(Map<Object,Object> map){
        RunfastActivityTargetMapper runfastActivityTargetMapper=(RunfastActivityTargetMapper)this.mapper;
        return runfastActivityTargetMapper.selectTargetAndActivityByMap(map);
    }
}